<%--
  Created by IntelliJ IDEA.
  User: lixin
  Date: 2020/5/12
  Time: 7:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>EL简化在JSP开发中对对象的引用</title>
</head>
<body>
<%
    pageContext.setAttribute("age", "11");
    request.setAttribute("name", "lx");
    session.setAttribute("user", "lx");
    application.setAttribute("a", "aaa");
%>
${pageScope.age}
${requestScope.name}
${sessionScope.user}
${applicationScope.a}
${name}
${user}
${not empty a} <%--判断是否为null--%>
${pageContext.request.contextPath} <%-- 动态获取虚拟目录 --%>
<%--${param.n == pageContext.request.getParameter("n")}--%>
</body>
</html>
